<?php
require('iniciar.php');
?>
<html>

<?php if (isset($_SESSION['logged_in'])) 
	   { 
	   	if ($_SESSION['admin'] == 1)
	   	{ 
	   	?>
	   	
		<head>
		<meta http-equiv="Refresh" content="1;url=adminindex.php">
		</head> <?php 
	   	}
	   	else 
	   	{
	   	?>
	   	
		<head>
	<!--  	<meta http-equiv="Refresh" content="1;url=userindex.php"> -->
			<meta http-equiv="Refresh" content="1;url=<?php echo $_SESSION['direccion']?>">
		</head>
	   	
	   	<?php 
	   	}
?>
<a href="logout.php?signature=<?php echo $_SESSION['signature']; ?>
">Logout</a><br /><?php } 
?>

</html>

